//
//  DemoCell.swift
//  swiftDemo
//
//  Created by Gerry on 2021/12/11.
//

import UIKit

/**
    @brief 测试CollectionView自动计算高度
 */
class DemoCell: UICollectionViewCell {

    @IBOutlet weak var titleLabel : UILabel!
    @IBOutlet weak var imgView : UIImageView!
    @IBOutlet weak var nicknameLabel : UILabel!
    
    var itemModel : RoomItem? {
        didSet {
            titleLabel.text = itemModel?.room_name
            nicknameLabel.text = itemModel?.nickname
            imgView.sd_setImage(with: URL.init(string: itemModel?.vertical_src ?? ""), completed: nil)
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    
}
